import request from '@/utils/request'

// 获取路由
export const getRouters = () => {
  return request({
    url: '/getRouters',
    method: 'get'
  })
}

// 获取行政区
export const getAreaByAreaCode = (query) => {
  return request({
    url: '/basicArea/getAreaByAreaCode',
    method: 'get',
    params: query
  })
}


// 省市区街道一级一级查的接口
export const getAreaByAreaId = (query) => {
  return request({
    url: '/basicArea/getAreaByAreaId',
    method: 'get',
    params: query
  })
}

